from geohash import decode


def accurate_get_bbox(gh):
    decoded = decode(gh)  # 包括西南角和东北角坐标
    return (decoded['southwest']['lon'], decoded['southwest']['lat'],
            decoded['northeast']['lon'], decoded['northeast']['lat'])


if __name__ == "__main__":
    geohash_str = "drm3b2"
    accurate_get_bbox(geohash_str)
